Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update IssueEvent ID field from int to long #2060

Merged
merged 1 commit into from
Jan 19, 2020
Merged

Update IssueEvent ID field from int to long #2060

merged 1 commit into from
Jan 19, 2020

Conversation

SteveDesmond-ca
Copy link
Contributor

@SteveDesmond-ca SteveDesmond-ca commented Jan 8, 2020

This PR fixes issues #1979 and #2031 (stack overflow when attempting to retrieve events on issues due to large ID numbers) and replaces the seemingly-abandoned PR #2037.

In addition to changing the types of the relevant field and parameters, the names of the parameters have also been updated (from number to eventId) to better reflect what's expected to be passed.

@codecov
Copy link

codecov bot commented Jan 8, 2020

Codecov Report

Merging #2060 into master will decrease coverage by 3.73%.
The diff coverage is 66.66%.

@@            Coverage Diff             @@
##           master    #2060      +/-   ##
==========================================
- Coverage   70.79%   67.06%   -3.74%     
==========================================
  Files         538      538              
  Lines       14139    14139              
==========================================
- Hits        10010     9482     -528     
- Misses       4129     4657     +528
Impacted Files Coverage Δ
Octokit/Helpers/ApiUrls.cs 98.62% <ø> (ø) ⬆️
Octokit/Models/Response/IssueEvent.cs 7.69% <0%> (-23.08%) ⬇️
...t.Reactive/Clients/ObservableIssuesEventsClient.cs 100% <100%> (ø) ⬆️
Octokit/Clients/IssuesEventsClient.cs 100% <100%> (ø) ⬆️
Octokit/Models/Request/RepositoryIssueRequest.cs 0% <0%> (-100%) ⬇️
.../Request/Enterprise/UpdatePreReceiveEnvironment.cs 0% <0%> (-66.67%) ⬇️
Octokit/Models/Request/NewTreeItem.cs 0% <0%> (-66.67%) ⬇️
Octokit/Models/Request/NotificationsRequest.cs 20% <0%> (-60%) ⬇️
Octokit/Helpers/ApiErrorExtensions.cs 50% <0%> (-50%) ⬇️
Octokit/Clients/Enterprise/EnterpriseClient.cs 56.25% <0%> (-43.75%) ⬇️
... and 143 more

@SteveDesmond-ca
Copy link
Contributor Author

(the code coverage reduction is a little disconcerting, given that this was all 1:1 type/name changes)

@SteveDesmond-ca SteveDesmond-ca marked this pull request as ready for review January 8, 2020 16:16
@shiftkey
Copy link
Member

(the code coverage reduction is a little disconcerting, given that this was all 1:1 type/name changes)

Yeah, I had a poke at the places it say were regressed but I can't spot anything I should be worried about 🤷‍♂

Copy link
Member

@shiftkey shiftkey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the contribution @SteveDesmond-ca!

@shiftkey
Copy link
Member

shiftkey commented Feb 3, 2020

release_notes: changed IssueEvent.Id from int to long to address deserialization issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working as documented
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants